package com.core.system.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 字典表
 */
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class DictDto implements Serializable {
	/** 字典码 */
    @Length(max =255 ,message = "长度不能超过255位")
	private String code;
    @Length(max =100 ,message = "长度不能超过100位")
	private String dictKey;
	/** 字典名称 */
    @Length(max =255 ,message = "长度不能超过255位")
	private String dictValue;
	/** 主键 */
	private String id;
	/** 是否已封存 */

	private Integer isSealed;
	/** 是否深色标签 */

	private Integer iseffect;
	/** 字典tag类型 */
    @Length(max =255 ,message = "长度不能超过255位")
	private String listClass;
	/** 父主键 */
	private String parentId;
	/** 字典备注 */
    @Length(max =255 ,message = "长度不能超过255位")
	private String remark;
	/** 排序 */

	private Integer sort;

	public void setCode(String code) {
		this.code = code;
	}
	
	public String getCode() {
		return this.code;
	}
	public void setDictKey(String dictKey) {
		this.dictKey = dictKey;
	}
	
	public String getDictKey() {
		return this.dictKey;
	}
	public void setDictValue(String dictValue) {
		this.dictValue = dictValue;
	}
	
	public String getDictValue() {
		return this.dictValue;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return this.id;
	}
	public void setIsSealed(Integer isSealed) {
		this.isSealed = isSealed;
	}
	
	public Integer getIsSealed() {
		return this.isSealed;
	}
	public void setIseffect(Integer iseffect) {
		this.iseffect = iseffect;
	}
	
	public Integer getIseffect() {
		return this.iseffect;
	}
	public void setListClass(String listClass) {
		this.listClass = listClass;
	}
	
	public String getListClass() {
		return this.listClass;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	
	public String getParentId() {
		return this.parentId;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getRemark() {
		return this.remark;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	public Integer getSort() {
		return this.sort;
	}

	
    
    @Override
    public String toString() {
        return "Dict{" +
		"code=" + code +
		",dictKey='" + dictKey + "'" + 
		",dictValue='" + dictValue + "'" + 
		",id='" + id + "'" + 
		",isSealed='" + isSealed + "'" + 
		",iseffect='" + iseffect + "'" + 
		",listClass='" + listClass + "'" + 
		",parentId='" + parentId + "'" + 
		",remark='" + remark + "'" + 
		",sort='" + sort + "'" + 
                '}';
    }
	
}